﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CDB.LinqModel.Data;

namespace CDB.LinqModel
{
    public partial class Testimonial
    {

        #region Variable Declaration
        private IDataRepository _dataObject;
        #endregion

        public Testimonial(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public void GetTestimonialById()
        {
            _dataObject.GetTestimonialById(this);
        }
        public void GetTestimonialByCreatedBy()
        {
            _dataObject.GetTestimonialByCreatedBy(this);
        }
        public List<Testimonial> GetAllTestimonials()
        {
            return _dataObject.GetAllTestimonials();
        }
        public void Create()
        {
            _dataObject.CreateTestimonial(this);
        }
        public void Update()
        {
            _dataObject.UpdateTestimonial(this);
        }
        public void Delete()
        {
            _dataObject.DeleteTestimonial(this);
        }
    }
}
